package com.example.cathouse;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class Cat {
    @PrimaryKey(autoGenerate = true)    // 自动生成
    private int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @ColumnInfo(name = "cat_name")
    private String catName;

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    @ColumnInfo(name = "cat_color")
    private String catColor;

    public String getCatColor() {
        return catColor;
    }

    public void setCatColor(String catColor) {
        this.catColor = catColor;
    }

    @ColumnInfo(name = "cat_sex")
    private String catSex;

    public String getCatSex() {
        return catSex;
    }

    public void setCatSex(String catSex) {
        this.catSex = catSex;
    }

    @ColumnInfo(name = "cat_condition")
    private String catCondition;

    public String getCatCondition() {
        return catCondition;
    }

    public void setCatCondition(String catCondition) {
        this.catCondition = catCondition;
    }

    @ColumnInfo(name = "cat_sterilization")
    private String catSterilization;

    public String getCatSterilization() {
        return catSterilization;
    }

    public void setCatSterilization(String catSterilization) {
        this.catSterilization = catSterilization;
    }

    @ColumnInfo(name = "cat_character")
    private String catCharacter;

    public String getCatCharacter() {
        return catCharacter;
    }

    public void setCatCharacter(String catCharacter) {
        this.catCharacter = catCharacter;
    }

    @ColumnInfo(name = "cat_appearance")
    private String catAppearance;

    public String getCatAppearance() {
        return catAppearance;
    }

    public void setCatAppearance(String catAppearance) {
        this.catAppearance = catAppearance;
    }

    @ColumnInfo(name = "cat_relationship")
    private String catRelationship;

    public String getCatRelationship() {
        return catRelationship;
    }

    public void setCatRelationship(String catRelationship) {
        this.catRelationship = catRelationship;
    }

    public Cat(String catName, String catColor, String catSex, String catCondition, String catSterilization, String catCharacter, String catAppearance, String catRelationship) {
        this.catName = catName;
        this.catColor = catColor;
        this.catSex = catSex;
        this.catCondition = catCondition;
        this.catSterilization = catSterilization;
        this.catCharacter = catCharacter;
        this.catAppearance = catAppearance;
        this.catRelationship = catRelationship;
    }
}
